package org.hako.recite.word.words.impl;

import org.hako.recite.word.words.IndexHandler;

/**
 * Random index handler.
 * 
 * @author xnnyygn
 */
public abstract class AbstractRandomIndexHandler implements IndexHandler {

    protected int[] mirror;

    /**
     * Create.
     * 
     * @param wordCount 
     */
    public AbstractRandomIndexHandler(int testWordLimit) {
        super();
        mirror = new int[testWordLimit];
    }

    /**
     * Get random index.
     * 
     * @param sourceIndex
     * @return 
     */
    @Override
    public int get(int sourceIndex) {
        return mirror[sourceIndex];
    }

    /**
     * Get mirror.
     * 
     * @return 
     */
    public int[] getMirror() {
        return mirror;
    }
}
